FROM tomcat:8.0-jre8

RUN rm -rf $CATALINA_HOME/webapps/* && rm -rf $CATALINA_HOME/logs/* && rm -rf $CATALINA_HOME/temp/*

VOLUME $CATALINA_HOME/webapps
VOLUME $CATALINA_HOME/logs

ENV CONFIG_SERVER http://192.168.2.80:9988

ADD target/management-adv.war $CATALINA_HOME/webapps/ROOT.war

CMD $CATALINA_HOME/bin/catalina.sh run